package com.adv.vo;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.URL;

public class AdverposForm {
	private Integer id;

	private Integer parentid;

	@Length(max = 255, message = "最多可以输入255个字符")
	@NotBlank(message = "广告商名称不能为空")
	private String name;

	private Short type;

	@Length(max = 255, message = "最多可以输入255个字符")
	@NotBlank(message = "链接地址不能为空")
	@URL(message = "链接地址格式不正确")
	private String linkurl;

	private String registertime;

	private Boolean enable;

	private Short priority;

	private String price;

	private String extra;

	@Length(max = 255, message = "最多可以输入255个字符")
	@NotBlank(message = "图标不能为空")
	@URL(message = "图标格式不正确")
	private String icon;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getParentid() {
		return parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Short getType() {
		return type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	public String getLinkurl() {
		return linkurl;
	}

	public void setLinkurl(String linkurl) {
		this.linkurl = linkurl;
	}

	public String getRegistertime() {
		return registertime;
	}

	public void setRegistertime(String registertime) {
		this.registertime = registertime;
	}

	public Boolean getEnable() {
		return enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	public Short getPriority() {
		return priority;
	}

	public void setPriority(Short priority) {
		this.priority = priority;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getExtra() {
		return extra;
	}

	public void setExtra(String extra) {
		this.extra = extra;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

}